<div id='isi'>
  <?php
        $atr = array('id' => 'formID','class' => 'formular');
        echo form_open_multipart('admin_account/journal', $atr);
        ?> 
        <input type="hidden"  name="id" id="id"  value="<?php echo $id ?>" />
        <input type="hidden"  name="posted" id="posted"  value="<?php echo $posted ?>" />
		<span><p> Period : </p><input type="text" name="periodno" id="periodno" value="<?php echo $periodno ?>" /> </span>
		<span><p> Date   : </p><input type="text" id="tanggal" name="tanggal" class="validate[required,custom[date]] text-input" value="<?php echo $tanggal;?>"> </span> 
		<div class="clear"></div>
		<br />
		
		<table id='laporan' class='display' width="100%" >
		  <thead>
            <tr>
                <th width="25%" ><p> Account Code </p> </th>
                <th width="55%" ><p> Narrative </p> </th>
				<th width="10%"><p> Debit </p> </th>
				<th width="10%"><p> Credit </p> </th>
			</tr>
		  </thead>
		  <tbody>
			<tr>
                <td>
					<select name="account_code" id="account_code" class="validate[required] text-input" >
                        <option value="">Account Code ::  </option>
                        <?php
                        foreach ($accCoa_list as $dta) {
							if($dta->account_code == $account_code){
								echo "<option value='$dta->account_code' selected='selected'> $dta->account_code</option>";
							} else {
								echo "<option value='$dta->account_code'> $dta->account_code :: $dta->account_sname</option>";
							}                            
                        }
                        ?>
                    </select>
                </td>
				<td> <input name="narrative" id="narrative" class="validate[required] text-input" size="50"/> </td>
				<td> <input name="amountD" id="amountD" class="validate[required] text-input" /> </td>
				<td> <input name="amountC" id="amountC" class="validate[required] text-input" /> </td>
			</tr>
		  </tbody>
		</table>
		<br/>
        <?php echo anchor("admin_account", "Back", "class='button' style='color:#f8f8f8'"); ?>
        <input type="submit" value="         Process       " class="button"/>		
		</form>
  <div class="clear"></div>
</div>